<template>
  <div>
    <van-sticky>
      <van-nav-bar
        title="预览"
        right-text="保存"
        left-arrow
        @click-left="onClickLeft"
        @click-right="onClickRight"
      />
    </van-sticky>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
    };
  },
  methods: {
    onClickLeft() {
      console.log(111111);
      this.$router.go(-1);
    },
    onClickRight() {
      console.log(22222222);
     
    },
  },
};
</script>

<style scoped>
/deep/.van-nav-bar__text {
  color: black;
}
/deep/.van-nav-bar__arrow {
  color: black;
}
</style>